﻿using System;
using System.Collections.Generic;

namespace LanhuFx.Context.PgSql.ResourcesModels
{
    public partial class IdentityTenant
    {
        public IdentityTenant()
        {
            IdentityAccount = new HashSet<IdentityAccount>();
            IdentityLoginlog = new HashSet<IdentityLoginlog>();
            IdentityPermissionsetting = new HashSet<IdentityPermissionsetting>();
            IdentityRole = new HashSet<IdentityRole>();
            IdentityRolepermissions = new HashSet<IdentityRolepermissions>();
            IdentityUserinfo = new HashSet<IdentityUserinfo>();
            IdentityUserpermissions = new HashSet<IdentityUserpermissions>();
            IdentityUserrole = new HashSet<IdentityUserRole>();
            IdentityUsertenant = new HashSet<IdentityUsertenant>();
        }

        public Guid Teamid { get; set; }
        public string Tenantname { get; set; }
        public string Tenantstate { get; set; }
        public string Tenanttype { get; set; }
        public DateTime? Createdat { get; set; }
        public string Tenantcode { get; set; }

        public virtual IdentitySyapiserviceConfig IdentitySyapiserviceConfig { get; set; }
        public virtual ICollection<IdentityAccount> IdentityAccount { get; set; }
        public virtual ICollection<IdentityLoginlog> IdentityLoginlog { get; set; }
        public virtual ICollection<IdentityPermissionsetting> IdentityPermissionsetting { get; set; }
        public virtual ICollection<IdentityRole> IdentityRole { get; set; }
        public virtual ICollection<IdentityRolepermissions> IdentityRolepermissions { get; set; }
        public virtual ICollection<IdentityUserinfo> IdentityUserinfo { get; set; }
        public virtual ICollection<IdentityUserpermissions> IdentityUserpermissions { get; set; }
        public virtual ICollection<IdentityUserRole> IdentityUserrole { get; set; }
        public virtual ICollection<IdentityUsertenant> IdentityUsertenant { get; set; }
    }
}
